package com.mapper;

import com.entity.Orderdetail;
import com.entity.OrderdetailExample;
import java.util.List;
import java.util.Map;

import com.entity.Orderinfo;
import org.apache.ibatis.annotations.Param;

public interface OrderdetailMapper {
    long countByExample(OrderdetailExample example);

    int deleteByExample(OrderdetailExample example);

    int deleteByPrimaryKey(String odid);

    int insert(Orderdetail record);

    int insertSelective(Orderdetail record);


    List<Orderdetail> getAllByPage(Map map);

    List<Orderdetail> selectByExample(OrderdetailExample example);


    List<Orderdetail> selectByOrid(String orid);//输入一个订单号可以查询出多条订单详情

    Orderdetail selectByPrimaryKey(String odid);

    int updateByExampleSelective(@Param("record") Orderdetail record, @Param("example") OrderdetailExample example);

    int updateByExample(@Param("record") Orderdetail record, @Param("example") OrderdetailExample example);

    int updateByPrimaryKeySelective(Orderdetail record);

    int updateByPrimaryKey(Orderdetail record);
}